<?
  include './myinclude/common.inc.php';

  $g_db = new Mysql_Cls($mysqlConfig);

  //获取热销手机列表
  $sql = " SELECT * FROM cj_mobile_phone WHERE moep_hot_sale=1  ORDER BY moep_id DESC LIMIT 0,10 ";
  $g_db->query($sql);
  while($row = $g_db->fetch_array()){
	  $hostSalePhone[] = $row;
  }


  /**
   * 取得手机信心
   */
  $phoneId = $_GET['id'];
  $sql = 'select * from cj_mobile_phone a left join cj_mobile_phone_info b on a.moep_id=b.moep_id where   a.moep_id='.$phoneId;
  $g_db->query($sql);
  $phoneInfo = $g_db->fetch_array();

  $sql = "select * from cj_mobile_img where moep_id=".$phoneId;
  $g_db->query($sql);
  while($row = $g_db->fetch_array()){
	  $phoneImgList[] = $row;
  }
  
  

  include './mytpl/mobile_info.php';
?>
